<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>快速笔记 | 小熊的技术文档</title>
    <meta name="generator" content="VuePress 1.8.2">
    <link rel="icon" href="/fav.ico">
    <link rel="stylesheet" href="/css/katex.min.css">
    <link rel="stylesheet" href="/css/github-markdown.min.css">
    <meta name="description" content="衣带渐宽终不悔，为伊消得人憔悴">
    
    <link rel="preload" href="/assets/css/0.styles.e6449353.css" as="style"><link rel="preload" href="/assets/js/app.9e067b79.js" as="script"><link rel="preload" href="/assets/js/2.983eb755.js" as="script"><link rel="preload" href="/assets/js/33.c82e2ab8.js" as="script"><link rel="prefetch" href="/assets/js/10.79548333.js"><link rel="prefetch" href="/assets/js/11.31600f80.js"><link rel="prefetch" href="/assets/js/12.62bd3528.js"><link rel="prefetch" href="/assets/js/13.de8b1ace.js"><link rel="prefetch" href="/assets/js/14.f5db1e75.js"><link rel="prefetch" href="/assets/js/15.bf827d4d.js"><link rel="prefetch" href="/assets/js/16.cc9a1a73.js"><link rel="prefetch" href="/assets/js/17.2cfaefeb.js"><link rel="prefetch" href="/assets/js/18.3af7782b.js"><link rel="prefetch" href="/assets/js/19.639f7e7b.js"><link rel="prefetch" href="/assets/js/20.dc862f59.js"><link rel="prefetch" href="/assets/js/21.916e1685.js"><link rel="prefetch" href="/assets/js/22.d7a955f4.js"><link rel="prefetch" href="/assets/js/23.078391ef.js"><link rel="prefetch" href="/assets/js/24.bb460a5a.js"><link rel="prefetch" href="/assets/js/25.d69f2326.js"><link rel="prefetch" href="/assets/js/26.6da7ea48.js"><link rel="prefetch" href="/assets/js/27.82e23d91.js"><link rel="prefetch" href="/assets/js/28.9073bbec.js"><link rel="prefetch" href="/assets/js/29.639259a4.js"><link rel="prefetch" href="/assets/js/3.e594e5b2.js"><link rel="prefetch" href="/assets/js/30.b49c622d.js"><link rel="prefetch" href="/assets/js/31.92f6c8b3.js"><link rel="prefetch" href="/assets/js/32.42419088.js"><link rel="prefetch" href="/assets/js/34.381de37e.js"><link rel="prefetch" href="/assets/js/35.5e86d478.js"><link rel="prefetch" href="/assets/js/36.31f218ce.js"><link rel="prefetch" href="/assets/js/37.0d287b3f.js"><link rel="prefetch" href="/assets/js/38.1324cf44.js"><link rel="prefetch" href="/assets/js/39.de6bdb51.js"><link rel="prefetch" href="/assets/js/4.440c4dd9.js"><link rel="prefetch" href="/assets/js/40.a22c9c27.js"><link rel="prefetch" href="/assets/js/41.4637d617.js"><link rel="prefetch" href="/assets/js/42.db815e2b.js"><link rel="prefetch" href="/assets/js/43.f0955a92.js"><link rel="prefetch" href="/assets/js/44.7d5faddf.js"><link rel="prefetch" href="/assets/js/45.a88ffc33.js"><link rel="prefetch" href="/assets/js/46.883caa71.js"><link rel="prefetch" href="/assets/js/47.6f2cfd60.js"><link rel="prefetch" href="/assets/js/48.ea25654e.js"><link rel="prefetch" href="/assets/js/49.f38c23a0.js"><link rel="prefetch" href="/assets/js/5.e8844f36.js"><link rel="prefetch" href="/assets/js/50.e03dd8e9.js"><link rel="prefetch" href="/assets/js/51.f6160d52.js"><link rel="prefetch" href="/assets/js/52.4daa8322.js"><link rel="prefetch" href="/assets/js/53.b30992e9.js"><link rel="prefetch" href="/assets/js/54.209f17e1.js"><link rel="prefetch" href="/assets/js/55.4f1dd95b.js"><link rel="prefetch" href="/assets/js/56.147ea3e8.js"><link rel="prefetch" href="/assets/js/57.5823e0e2.js"><link rel="prefetch" href="/assets/js/58.772320f9.js"><link rel="prefetch" href="/assets/js/59.5ab55a80.js"><link rel="prefetch" href="/assets/js/6.54e1cc95.js"><link rel="prefetch" href="/assets/js/60.b47b75bb.js"><link rel="prefetch" href="/assets/js/61.0cd5a012.js"><link rel="prefetch" href="/assets/js/62.35eb5453.js"><link rel="prefetch" href="/assets/js/63.d31f2118.js"><link rel="prefetch" href="/assets/js/64.03d35d7c.js"><link rel="prefetch" href="/assets/js/65.8bdc633f.js"><link rel="prefetch" href="/assets/js/66.dbbe8867.js"><link rel="prefetch" href="/assets/js/67.228613b5.js"><link rel="prefetch" href="/assets/js/68.d10a2687.js"><link rel="prefetch" href="/assets/js/69.7903847f.js"><link rel="prefetch" href="/assets/js/7.f5ab00eb.js"><link rel="prefetch" href="/assets/js/70.11ee4e27.js"><link rel="prefetch" href="/assets/js/8.95b39934.js"><link rel="prefetch" href="/assets/js/9.26cfd48c.js">
    <link rel="stylesheet" href="/assets/css/0.styles.e6449353.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">小熊的技术文档</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/front-end/" class="nav-link">
  🎨前端
</a></div><div class="nav-item"><a href="/back-end/" class="nav-link">
  💻后端
</a></div><div class="nav-item"><a href="/practice/" class="nav-link">
  🚀实战
</a></div><div class="nav-item"><a href="/office/" class="nav-link">
  🏢办公
</a></div><div class="nav-item"><a href="/general/" class="nav-link router-link-active">
  🍓通用
</a></div><div class="nav-item"><a href="/paper/" class="nav-link">
  🐸论文
</a></div><div class="nav-item"><a href="/general/fast.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
  ⚡快速笔记
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="🦉近期重点" class="dropdown-title"><span class="title">🦉近期重点</span> <span class="arrow down"></span></button> <button type="button" aria-label="🦉近期重点" class="mobile-dropdown-title"><span class="title">🦉近期重点</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/back-end/python.html" class="nav-link">
  🐇python常用模块
</a></li><li class="dropdown-item"><!----> <a href="/practice/zrender.html" class="nav-link">
  🌹zrender源码解析
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="⭐️资源" class="dropdown-title"><span class="title">⭐️资源</span> <span class="arrow down"></span></button> <button type="button" aria-label="⭐️资源" class="mobile-dropdown-title"><span class="title">⭐️资源</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.birdiesearch.com/" target="_blank" rel="noopener noreferrer" class="nav-link external">
  小鸟搜索
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://salttiger.com/" target="_blank" rel="noopener noreferrer" class="nav-link external">
  每天一本编程书
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://gitee.com/docmirror/dev-sidecar" target="_blank" rel="noopener noreferrer" class="nav-link external">
  开发者边车
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/front-end/" class="nav-link">
  🎨前端
</a></div><div class="nav-item"><a href="/back-end/" class="nav-link">
  💻后端
</a></div><div class="nav-item"><a href="/practice/" class="nav-link">
  🚀实战
</a></div><div class="nav-item"><a href="/office/" class="nav-link">
  🏢办公
</a></div><div class="nav-item"><a href="/general/" class="nav-link router-link-active">
  🍓通用
</a></div><div class="nav-item"><a href="/paper/" class="nav-link">
  🐸论文
</a></div><div class="nav-item"><a href="/general/fast.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
  ⚡快速笔记
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="🦉近期重点" class="dropdown-title"><span class="title">🦉近期重点</span> <span class="arrow down"></span></button> <button type="button" aria-label="🦉近期重点" class="mobile-dropdown-title"><span class="title">🦉近期重点</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/back-end/python.html" class="nav-link">
  🐇python常用模块
</a></li><li class="dropdown-item"><!----> <a href="/practice/zrender.html" class="nav-link">
  🌹zrender源码解析
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="⭐️资源" class="dropdown-title"><span class="title">⭐️资源</span> <span class="arrow down"></span></button> <button type="button" aria-label="⭐️资源" class="mobile-dropdown-title"><span class="title">⭐️资源</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.birdiesearch.com/" target="_blank" rel="noopener noreferrer" class="nav-link external">
  小鸟搜索
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://salttiger.com/" target="_blank" rel="noopener noreferrer" class="nav-link external">
  每天一本编程书
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://gitee.com/docmirror/dev-sidecar" target="_blank" rel="noopener noreferrer" class="nav-link external">
  开发者边车
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></div></div> <!----></nav>  <ul class="sidebar-links"><li><a href="/general/fast.html" aria-current="page" class="active sidebar-link">快速笔记</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/general/fast.html#使用echarts绘制直方图" class="sidebar-link">使用Echarts绘制直方图</a></li><li class="sidebar-sub-header"><a href="/general/fast.html#excel的vb中使用正则表达式" class="sidebar-link">Excel的VB中使用正则表达式</a></li><li class="sidebar-sub-header"><a href="/general/fast.html#英文专业书籍搜索-libgen" class="sidebar-link">英文专业书籍搜索（libgen）</a></li><li class="sidebar-sub-header"><a href="/general/fast.html#油猴脚本推荐" class="sidebar-link">油猴脚本推荐</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/general/fast.html#网易云音乐直接下载" class="sidebar-link">网易云音乐直接下载</a></li><li class="sidebar-sub-header"><a href="/general/fast.html#bilibili-evolved" class="sidebar-link">Bilibili Evolved</a></li><li class="sidebar-sub-header"><a href="/general/fast.html#中国知网cnki硕博论文pdf下载" class="sidebar-link">中国知网CNKI硕博论文PDF下载</a></li><li class="sidebar-sub-header"><a href="/general/fast.html#全球安全网站模态框拦截" class="sidebar-link">全球安全网站模态框拦截</a></li><li class="sidebar-sub-header"><a href="/general/fast.html#知乎网页助手" class="sidebar-link">知乎网页助手</a></li><li class="sidebar-sub-header"><a href="/general/fast.html#vip会员视频自动解析" class="sidebar-link">VIP会员视频自动解析</a></li><li class="sidebar-sub-header"><a href="/general/fast.html#csdn-去广告沉浸阅读模式" class="sidebar-link">CSDN 去广告沉浸阅读模式</a></li></ul></li><li class="sidebar-sub-header"><a href="/general/fast.html#移动硬盘情况" class="sidebar-link">移动硬盘情况</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/general/fast.html#_2tb-新-移动硬盘-黑薄" class="sidebar-link">2TB-移动硬盘(黑薄)</a></li><li class="sidebar-sub-header"><a href="/general/fast.html#_2tb-旧-移动硬盘-白厚" class="sidebar-link">2TB-移动硬盘(白厚)</a></li><li class="sidebar-sub-header"><a href="/general/fast.html#_4tb-移动硬盘-黑厚" class="sidebar-link">4TB-移动硬盘(黑厚)</a></li></ul></li><li class="sidebar-sub-header"><a href="/general/fast.html#b站视频下载-bilibili视频下载" class="sidebar-link">B站视频下载(bilibili视频下载)</a></li></ul></li><li><a href="/general/git.html" class="sidebar-link">git 使用攻略</a></li><li><a href="/general/markdown.html" class="sidebar-link">Markdown基本语法</a></li><li><a href="/general/nexus.html" class="sidebar-link">nexus3搭建私有源</a></li><li><a href="/general/latex.html" class="sidebar-link">Katex/Latex 公式速查</a></li><li><a href="/general/vscode.html" class="sidebar-link">VS Code 常用操作</a></li><li><a href="/general/guide.html" class="sidebar-link">搭建指南</a></li><li><a href="/general/reg.html" class="sidebar-link">正则表达式</a></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="快速笔记"><a href="#快速笔记" class="header-anchor">#</a> 快速笔记</h1> <blockquote><p>未分类笔记，主要用来记录一些想法。</p></blockquote> <h2 id="使用echarts绘制直方图"><a href="#使用echarts绘制直方图" class="header-anchor">#</a> 使用Echarts绘制直方图</h2> <div class="language-JavaScript extra-class"><pre class="language-javascript"><code><span class="token keyword">const</span> histogramChart <span class="token operator">=</span> echarts<span class="token punctuation">.</span><span class="token function">init</span><span class="token punctuation">(</span>document<span class="token punctuation">.</span><span class="token function">getElementById</span><span class="token punctuation">(</span><span class="token string">'histogram'</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token comment">// 年龄</span>
<span class="token keyword">var</span> ages <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token number">74</span><span class="token punctuation">,</span> <span class="token number">75</span><span class="token punctuation">,</span> <span class="token number">69</span><span class="token punctuation">,</span> <span class="token number">67</span><span class="token punctuation">,</span> <span class="token number">46</span><span class="token punctuation">,</span> <span class="token number">78</span><span class="token punctuation">,</span> <span class="token number">72</span><span class="token punctuation">,</span> <span class="token number">63</span><span class="token punctuation">,</span> <span class="token number">77</span><span class="token punctuation">,</span> <span class="token number">80</span><span class="token punctuation">,</span> <span class="token number">78</span><span class="token punctuation">,</span> <span class="token number">85</span><span class="token punctuation">,</span> <span class="token number">82</span><span class="token punctuation">,</span> <span class="token number">69</span><span class="token punctuation">,</span> <span class="token number">71</span><span class="token punctuation">,</span> <span class="token number">89</span><span class="token punctuation">,</span> <span class="token number">69</span><span class="token punctuation">,</span> <span class="token number">81</span><span class="token punctuation">,</span> <span class="token number">93</span><span class="token punctuation">,</span> <span class="token number">69</span><span class="token punctuation">,</span> <span class="token number">79</span><span class="token punctuation">,</span> <span class="token number">69</span><span class="token punctuation">,</span> <span class="token number">82</span><span class="token punctuation">,</span> <span class="token number">82</span><span class="token punctuation">,</span> <span class="token number">89</span><span class="token punctuation">,</span> <span class="token number">72</span><span class="token punctuation">,</span> <span class="token number">78</span><span class="token punctuation">,</span> <span class="token number">78</span><span class="token punctuation">,</span> <span class="token number">78</span><span class="token punctuation">,</span> <span class="token number">84</span><span class="token punctuation">,</span> <span class="token number">74</span><span class="token punctuation">,</span> <span class="token number">88</span><span class="token punctuation">,</span> <span class="token number">78</span><span class="token punctuation">,</span> <span class="token number">87</span><span class="token punctuation">,</span> <span class="token number">70</span><span class="token punctuation">,</span> <span class="token number">85</span><span class="token punctuation">,</span> <span class="token number">74</span><span class="token punctuation">,</span> <span class="token number">86</span><span class="token punctuation">,</span> <span class="token number">80</span><span class="token punctuation">,</span> <span class="token number">76</span><span class="token punctuation">,</span> <span class="token number">77</span><span class="token punctuation">,</span> <span class="token number">90</span><span class="token punctuation">,</span> <span class="token number">81</span><span class="token punctuation">,</span> <span class="token number">74</span><span class="token punctuation">,</span> <span class="token number">84</span><span class="token punctuation">,</span> <span class="token number">71</span><span class="token punctuation">,</span> <span class="token number">88</span><span class="token punctuation">,</span> <span class="token number">85</span><span class="token punctuation">,</span> <span class="token number">92</span><span class="token punctuation">,</span> <span class="token number">89</span><span class="token punctuation">,</span> <span class="token number">78</span><span class="token punctuation">,</span> <span class="token number">84</span><span class="token punctuation">,</span> <span class="token number">69</span><span class="token punctuation">,</span> <span class="token number">76</span><span class="token punctuation">,</span> <span class="token number">81</span><span class="token punctuation">,</span> <span class="token number">67</span><span class="token punctuation">,</span> <span class="token number">88</span><span class="token punctuation">]</span><span class="token punctuation">;</span>

<span class="token comment">// See https://github.com/ecomfe/echarts-stat</span>
<span class="token comment">// 直方图提供了四种计算小区间间隔个数的方法，分别是 squareRoot, scott, freedmanDiaconis 和 sturges</span>
<span class="token keyword">var</span> bins <span class="token operator">=</span> ecStat<span class="token punctuation">.</span><span class="token function">histogram</span><span class="token punctuation">(</span>ages<span class="token punctuation">,</span><span class="token string">'scott'</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token comment">// 柱子间间隔的刻度</span>
<span class="token keyword">var</span> interval<span class="token punctuation">;</span>

<span class="token keyword">var</span> min <span class="token operator">=</span> <span class="token number">Infinity</span><span class="token punctuation">;</span>
<span class="token keyword">var</span> max <span class="token operator">=</span> <span class="token operator">-</span><span class="token number">Infinity</span><span class="token punctuation">;</span>

<span class="token keyword">var</span> data <span class="token operator">=</span> echarts<span class="token punctuation">.</span>util<span class="token punctuation">.</span><span class="token function">map</span><span class="token punctuation">(</span>bins<span class="token punctuation">.</span>data<span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token parameter">item<span class="token punctuation">,</span> index</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token comment">// 左刻度</span>
    <span class="token keyword">var</span> x0 <span class="token operator">=</span> bins<span class="token punctuation">.</span>bins<span class="token punctuation">[</span>index<span class="token punctuation">]</span><span class="token punctuation">.</span>x0<span class="token punctuation">;</span>
    <span class="token comment">// 右刻度</span>
    <span class="token keyword">var</span> x1 <span class="token operator">=</span> bins<span class="token punctuation">.</span>bins<span class="token punctuation">[</span>index<span class="token punctuation">]</span><span class="token punctuation">.</span>x1<span class="token punctuation">;</span>
    interval <span class="token operator">=</span> x1 <span class="token operator">-</span> x0<span class="token punctuation">;</span>
    <span class="token comment">// 获得数据集中最值</span>
    min <span class="token operator">=</span> Math<span class="token punctuation">.</span><span class="token function">min</span><span class="token punctuation">(</span>min<span class="token punctuation">,</span> x0<span class="token punctuation">)</span><span class="token punctuation">;</span>
    max <span class="token operator">=</span> Math<span class="token punctuation">.</span><span class="token function">max</span><span class="token punctuation">(</span>max<span class="token punctuation">,</span> x1<span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token comment">// item[0]代表刻度的中间值，item[1]代表出现的次数</span>
    <span class="token keyword">return</span> <span class="token punctuation">[</span>x0<span class="token punctuation">,</span> x1<span class="token punctuation">,</span> item<span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token comment">// 自定义渲染效果</span>
<span class="token keyword">function</span> <span class="token function">renderItem</span><span class="token punctuation">(</span><span class="token parameter">params<span class="token punctuation">,</span> api</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token comment">// 这个根据自己的需求适当调节</span>
    <span class="token keyword">var</span> yValue <span class="token operator">=</span> api<span class="token punctuation">.</span><span class="token function">value</span><span class="token punctuation">(</span><span class="token number">2</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">var</span> start <span class="token operator">=</span> api<span class="token punctuation">.</span><span class="token function">coord</span><span class="token punctuation">(</span><span class="token punctuation">[</span>api<span class="token punctuation">.</span><span class="token function">value</span><span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">,</span> yValue<span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">var</span> size <span class="token operator">=</span> api<span class="token punctuation">.</span><span class="token function">size</span><span class="token punctuation">(</span><span class="token punctuation">[</span>api<span class="token punctuation">.</span><span class="token function">value</span><span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token operator">-</span> api<span class="token punctuation">.</span><span class="token function">value</span><span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">,</span> yValue<span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">var</span> style <span class="token operator">=</span> api<span class="token punctuation">.</span><span class="token function">style</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

    <span class="token keyword">return</span> <span class="token punctuation">{</span>
        <span class="token comment">// 矩形及配置</span>
        type<span class="token operator">:</span> <span class="token string">'rect'</span><span class="token punctuation">,</span>
        shape<span class="token operator">:</span> <span class="token punctuation">{</span>
            x<span class="token operator">:</span> start<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span> <span class="token operator">+</span> <span class="token number">1</span><span class="token punctuation">,</span>
            y<span class="token operator">:</span> start<span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
            width<span class="token operator">:</span> size<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span> <span class="token operator">-</span> <span class="token number">2</span><span class="token punctuation">,</span>
            height<span class="token operator">:</span> size<span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        style<span class="token operator">:</span> style
    <span class="token punctuation">}</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>

option <span class="token operator">=</span> <span class="token punctuation">{</span>
    title<span class="token operator">:</span> <span class="token punctuation">{</span>
        text<span class="token operator">:</span> <span class="token string">'患者年龄分布直方图'</span><span class="token punctuation">,</span>
        left<span class="token operator">:</span> <span class="token string">'center'</span><span class="token punctuation">,</span>
        top<span class="token operator">:</span> <span class="token number">10</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    color<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">'rgb(25, 183, 207)'</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
    grid<span class="token operator">:</span> <span class="token punctuation">{</span>
        top<span class="token operator">:</span> <span class="token number">80</span><span class="token punctuation">,</span>
        containLabel<span class="token operator">:</span> <span class="token boolean">true</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    xAxis<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">{</span>
        name<span class="token operator">:</span><span class="token string">&quot;年龄&quot;</span><span class="token punctuation">,</span>
        type<span class="token operator">:</span> <span class="token string">'value'</span><span class="token punctuation">,</span>
        min<span class="token operator">:</span> min<span class="token punctuation">,</span>
        max<span class="token operator">:</span> max<span class="token punctuation">,</span>
        interval<span class="token operator">:</span> interval
    <span class="token punctuation">}</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
    yAxis<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">{</span>
        name<span class="token operator">:</span><span class="token string">'出现次数'</span><span class="token punctuation">,</span>
        type<span class="token operator">:</span> <span class="token string">'value'</span><span class="token punctuation">,</span>
    <span class="token punctuation">}</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
    series<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">{</span>
        name<span class="token operator">:</span> <span class="token string">'height'</span><span class="token punctuation">,</span>
        type<span class="token operator">:</span> <span class="token string">'custom'</span><span class="token punctuation">,</span>
        renderItem<span class="token operator">:</span> renderItem<span class="token punctuation">,</span>
        label<span class="token operator">:</span> <span class="token punctuation">{</span>
            show<span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
            position<span class="token operator">:</span> <span class="token string">'insideTop'</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        encode<span class="token operator">:</span> <span class="token punctuation">{</span>
            <span class="token comment">// 表示将data中的data[0]和data[1]映射到x轴</span>
            x<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">,</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
            <span class="token comment">// 表示将data中的data[2]映射到y轴</span>
            y<span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span>
            <span class="token comment">// 表示将data中的data[2]映射到tooltip</span>
            tooltip<span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span>
            <span class="token comment">// 表示将data中的data[2]映射到label</span>
            label<span class="token operator">:</span> <span class="token number">2</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        data<span class="token operator">:</span> data
    <span class="token punctuation">}</span><span class="token punctuation">]</span>
<span class="token punctuation">}</span><span class="token punctuation">;</span>
histogramChart<span class="token punctuation">.</span><span class="token function">setOption</span><span class="token punctuation">(</span>option<span class="token punctuation">)</span>
</code></pre></div><p>最后的效果如下图所示。</p> <p><img src="https://pic.imgdb.cn/item/61227ad444eaada739f7c0ba.jpg" alt="年龄分布直方图"></p> <p>意外发现百度开源的<a href="https://gitee.com/yunduanxing/echarts-stat" target="_blank" rel="noopener noreferrer">ecStat<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>工具，它是ECharts的统计和数据挖掘工具。你可以把它当作一个工具库直接用来分析数据；你也可以将其与ECharts结合使用，用ECharts可视化数据分析的结果。</p> <p>它的API主要有四类，分别是：</p> <ul><li>直方图</li> <li>聚类</li> <li>回归</li> <li>基本统计方法</li></ul> <p>ps: 其实也可以用Python的<strong>seaborn</strong>来绘制直方图，不过调整起来没有那么方便，跟node.js不是一个技术栈，所以这次没怎么用。</p> <h2 id="excel的vb中使用正则表达式"><a href="#excel的vb中使用正则表达式" class="header-anchor">#</a> Excel的VB中使用正则表达式</h2> <p>需要处理的列大概长这样</p> <div class="language-text extra-class"><pre class="language-text"><code>术前血压119/67mmHg     心率（99次／分）　　　血氧饱和度（99％） 
术中血压121/68mmHg     心率（101次／分）　　　血氧饱和度（98％）
术后血压113/64mmHg     心率（105次／分）　　　血氧饱和度（99％）
</code></pre></div><p>在excel中使用vb将其拆分为以下形式：</p> <p><img src="https://pic.imgdb.cn/item/61227f1e44eaada739fa2e02.jpg" alt="excel拆分"></p> <p>所使用的vb语句如下：</p> <div class="language-vb extra-class"><pre class="language-vb"><code><span class="token keyword">Option</span> Explicit

<span class="token comment">' 根据阶段和项目获取信息</span>
<span class="token keyword">Function</span> getInfo<span class="token punctuation">(</span>content <span class="token keyword">As</span> <span class="token keyword">String</span><span class="token punctuation">,</span> phase <span class="token keyword">As</span> <span class="token keyword">String</span><span class="token punctuation">,</span> item <span class="token keyword">As</span> <span class="token keyword">String</span><span class="token punctuation">)</span>
    <span class="token keyword">Dim</span> phaseString<span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">As</span> <span class="token keyword">String</span><span class="token punctuation">,</span> allInfo <span class="token keyword">As</span> <span class="token keyword">String</span>
    
    phaseString <span class="token operator">=</span> VBA<span class="token punctuation">.</span>Split<span class="token punctuation">(</span>content<span class="token punctuation">,</span> Chr<span class="token punctuation">(</span><span class="token number">10</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
    allInfo <span class="token operator">=</span> <span class="token string">&quot;&quot;</span>
    <span class="token keyword">If</span> UBound<span class="token punctuation">(</span>phaseString<span class="token punctuation">)</span> <span class="token operator">=</span> <span class="token number">3</span> <span class="token keyword">Then</span>
        <span class="token keyword">If</span> phase <span class="token operator">=</span> <span class="token string">&quot;术前&quot;</span> <span class="token keyword">Then</span>
            allInfo <span class="token operator">=</span> phaseString<span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">)</span>
        <span class="token keyword">ElseIf</span> phase <span class="token operator">=</span> <span class="token string">&quot;术中&quot;</span> <span class="token keyword">Then</span>
            allInfo <span class="token operator">=</span> phaseString<span class="token punctuation">(</span><span class="token number">2</span><span class="token punctuation">)</span>
        <span class="token keyword">ElseIf</span> phase <span class="token operator">=</span> <span class="token string">&quot;术后&quot;</span> <span class="token keyword">Then</span>
            allInfo <span class="token operator">=</span> phaseString<span class="token punctuation">(</span><span class="token number">3</span><span class="token punctuation">)</span>
        <span class="token keyword">End</span> <span class="token keyword">If</span>
    <span class="token keyword">ElseIf</span> UBound<span class="token punctuation">(</span>phaseString<span class="token punctuation">)</span> <span class="token operator">=</span> <span class="token number">2</span> <span class="token keyword">Then</span>
        <span class="token keyword">If</span> phase <span class="token operator">=</span> <span class="token string">&quot;术前&quot;</span> <span class="token keyword">Then</span>
            allInfo <span class="token operator">=</span> phaseString<span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">)</span>
        <span class="token keyword">ElseIf</span> phase <span class="token operator">=</span> <span class="token string">&quot;术中&quot;</span> <span class="token keyword">Then</span>
            allInfo <span class="token operator">=</span> phaseString<span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">)</span>
        <span class="token keyword">ElseIf</span> phase <span class="token operator">=</span> <span class="token string">&quot;术后&quot;</span> <span class="token keyword">Then</span>
            allInfo <span class="token operator">=</span> phaseString<span class="token punctuation">(</span><span class="token number">2</span><span class="token punctuation">)</span>
        <span class="token keyword">End</span> <span class="token keyword">If</span>
    <span class="token keyword">End</span> <span class="token keyword">If</span>
    
    <span class="token keyword">Dim</span> reg <span class="token keyword">As</span> <span class="token keyword">Object</span><span class="token punctuation">,</span> mc <span class="token keyword">As</span> <span class="token keyword">Object</span><span class="token punctuation">,</span> result <span class="token keyword">As</span> <span class="token keyword">String</span>
    <span class="token keyword">Set</span> reg <span class="token operator">=</span> CreateObject<span class="token punctuation">(</span><span class="token string">&quot;VBScript.RegExp&quot;</span><span class="token punctuation">)</span>
    <span class="token keyword">If</span> item <span class="token operator">=</span> <span class="token string">&quot;血压&quot;</span> <span class="token keyword">Then</span>
        reg<span class="token punctuation">.</span>Pattern <span class="token operator">=</span> <span class="token string">&quot;血[压](.+)?mm&quot;</span>
        <span class="token keyword">Set</span> mc <span class="token operator">=</span> reg<span class="token punctuation">.</span>Execute<span class="token punctuation">(</span>allInfo<span class="token punctuation">)</span>
        result <span class="token operator">=</span> mc<span class="token punctuation">.</span>item<span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">.</span>submatches<span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">)</span>
    <span class="token keyword">ElseIf</span> item <span class="token operator">=</span> <span class="token string">&quot;心率&quot;</span> <span class="token keyword">Then</span>
        reg<span class="token punctuation">.</span>Pattern <span class="token operator">=</span> <span class="token string">&quot;（(\d+)?次／分&quot;</span>
        <span class="token keyword">Set</span> mc <span class="token operator">=</span> reg<span class="token punctuation">.</span>Execute<span class="token punctuation">(</span>allInfo<span class="token punctuation">)</span>
        result <span class="token operator">=</span> mc<span class="token punctuation">.</span>item<span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">.</span>submatches<span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">)</span>
    <span class="token keyword">ElseIf</span> item <span class="token operator">=</span> <span class="token string">&quot;血氧饱和度&quot;</span> <span class="token keyword">Then</span>
        reg<span class="token punctuation">.</span>Pattern <span class="token operator">=</span> <span class="token string">&quot;（(\d+)?％&quot;</span>
        <span class="token keyword">Set</span> mc <span class="token operator">=</span> reg<span class="token punctuation">.</span>Execute<span class="token punctuation">(</span>allInfo<span class="token punctuation">)</span>
        result <span class="token operator">=</span> mc<span class="token punctuation">.</span>item<span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">.</span>submatches<span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">)</span>
    <span class="token keyword">End</span> <span class="token keyword">If</span>

    getInfo <span class="token operator">=</span> result
<span class="token keyword">End</span> <span class="token keyword">Function</span>
</code></pre></div><h2 id="英文专业书籍搜索-libgen"><a href="#英文专业书籍搜索-libgen" class="header-anchor">#</a> 英文专业书籍搜索（libgen）</h2> <p>使用<a href="https://libgen.is/search.php" target="_blank" rel="noopener noreferrer">libgen<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>可以搜索很多英文专业书，最近的military balance 2021就是在这上面找到的。</p> <p><img src="https://pic.imgdb.cn/item/61227fff44eaada739faa3d8.jpg" alt="military balance搜索"></p> <h2 id="油猴脚本推荐"><a href="#油猴脚本推荐" class="header-anchor">#</a> 油猴脚本推荐</h2> <p>到<a href="https://greasyfork.org/zh-CN" target="_blank" rel="noopener noreferrer">Greasy Fork<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>搜索并下载脚本，常用脚本有：</p> <h3 id="网易云音乐直接下载"><a href="#网易云音乐直接下载" class="header-anchor">#</a> 网易云音乐直接下载</h3> <p><a href="https://greasyfork.org/zh-CN/scripts/33046-%E7%BD%91%E6%98%93%E4%BA%91%E9%9F%B3%E4%B9%90%E7%9B%B4%E6%8E%A5%E4%B8%8B%E8%BD%BD" target="_blank" rel="noopener noreferrer">3046-网易云音乐直接下载<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>:在单曲页面显示歌词、翻译、封面、MV、歌曲下载链接并以高音质试听。同时支持歌单、专辑等页面直接下载单曲、封面、歌词(压缩包)。</p> <h3 id="bilibili-evolved"><a href="#bilibili-evolved" class="header-anchor">#</a> Bilibili Evolved</h3> <p><a href="https://github.com/the1812/Bilibili-Evolved" target="_blank" rel="noopener noreferrer">Bilibili Evolved<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>主要是改善BiliBili的观看体验，能够提供下载弹幕、视频等功能，点击<a href="https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@master/bilibili-evolved.user.js" target="_blank" rel="noopener noreferrer">此处<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>安装，设置如下。</p> <p><img src="https://ftp.bmp.ovh/imgs/2021/09/c818d4d55c5e2173.png" alt="Bilibili Evolved预览"></p> <h3 id="中国知网cnki硕博论文pdf下载"><a href="#中国知网cnki硕博论文pdf下载" class="header-anchor">#</a> 中国知网CNKI硕博论文PDF下载</h3> <p><a href="https://greasyfork.org/zh-CN/scripts/389343-%E4%B8%AD%E5%9B%BD%E7%9F%A5%E7%BD%91cnki%E7%A1%95%E5%8D%9A%E8%AE%BA%E6%96%87pdf%E4%B8%8B%E8%BD%BD" target="_blank" rel="noopener noreferrer">中国知网CNKI硕博论文PDF下载<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>，添加知网直接下载PDF的按钮。</p> <h3 id="全球安全网站模态框拦截"><a href="#全球安全网站模态框拦截" class="header-anchor">#</a> 全球安全网站模态框拦截</h3> <p>代码是自己写的，主要用途是在访问<a href="https://www.globalsecurity.org/military/library/" target="_blank" rel="noopener noreferrer">全球安全<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>网站时，拦截登录模态框，源码如下：</p> <div class="language-js extra-class"><pre class="language-js"><code><span class="token comment">// ==UserScript==</span>
<span class="token comment">// @name         全球安全模态框拦截</span>
<span class="token comment">// @namespace    http://tampermonkey.net/</span>
<span class="token comment">// @version      0.1</span>
<span class="token comment">// @description  try to take over the world!</span>
<span class="token comment">// @author       You</span>
<span class="token comment">// @match        https://www.globalsecurity.org/*</span>
<span class="token comment">// @run-at      document-end</span>
<span class="token comment">// @grant        none</span>
<span class="token comment">// @require      http://libs.baidu.com/jquery/2.0.0/jquery.min.js</span>
<span class="token comment">// ==/UserScript==</span>

<span class="token punctuation">(</span><span class="token keyword">function</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token string">'use strict'</span><span class="token punctuation">;</span>
    <span class="token keyword">function</span> <span class="token function">removeModal</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
        <span class="token keyword">if</span><span class="token punctuation">(</span><span class="token function">$</span><span class="token punctuation">(</span><span class="token string">'#military'</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">attr</span><span class="token punctuation">(</span><span class="token string">'class'</span><span class="token punctuation">)</span> <span class="token operator">===</span> <span class="token string">&quot;tp-modal-open&quot;</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
            console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token string">&quot;弹出模态框&quot;</span><span class="token punctuation">)</span>
            <span class="token function">$</span><span class="token punctuation">(</span><span class="token string">&quot;#military&quot;</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">removeClass</span><span class="token punctuation">(</span><span class="token string">&quot;tp-modal-open&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>  <span class="token comment">// 移除tp-modal-open类，使得鼠标能滚动</span>
            <span class="token function">$</span><span class="token punctuation">(</span><span class="token string">&quot;.tp-backdrop.tp-active&quot;</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">css</span><span class="token punctuation">(</span><span class="token string">'opacity'</span><span class="token punctuation">,</span> <span class="token number">0</span><span class="token punctuation">)</span>
            <span class="token function">$</span><span class="token punctuation">(</span><span class="token string">&quot;.tp-backdrop.tp-active&quot;</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">removeClass</span><span class="token punctuation">(</span><span class="token string">&quot;tp-backdrop&quot;</span><span class="token punctuation">)</span>
            <span class="token function">$</span><span class="token punctuation">(</span><span class="token string">&quot;div.tp-modal&quot;</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">remove</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
    <span class="token function">setTimeout</span><span class="token punctuation">(</span>removeModal<span class="token punctuation">,</span><span class="token number">2000</span><span class="token punctuation">)</span>
    <span class="token function">setTimeout</span><span class="token punctuation">(</span>removeModal<span class="token punctuation">,</span><span class="token number">4000</span><span class="token punctuation">)</span>
    <span class="token function">setTimeout</span><span class="token punctuation">(</span>removeModal<span class="token punctuation">,</span><span class="token number">6000</span><span class="token punctuation">)</span>
    <span class="token function">setTimeout</span><span class="token punctuation">(</span>removeModal<span class="token punctuation">,</span><span class="token number">8000</span><span class="token punctuation">)</span>
    <span class="token function">setTimeout</span><span class="token punctuation">(</span>removeModal<span class="token punctuation">,</span><span class="token number">10000</span><span class="token punctuation">)</span>

<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div><h3 id="知乎网页助手"><a href="#知乎网页助手" class="header-anchor">#</a> 知乎网页助手</h3> <p><a href="https://greasyfork.org/zh-CN/scripts/384172-%E7%9F%A5%E4%B9%8E%E7%BD%91%E9%A1%B5%E5%8A%A9%E6%89%8B" target="_blank" rel="noopener noreferrer">知乎网页助手<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>，功能介绍：1、知乎站外链接直接跳转至目标网址；2、自动展开问题全部信息，同时展示所有回答；3、去除知乎网页中的广告；4、知乎网页中短视频下载；5、解除知乎复制限制-划词复制（鼠标左键划词自动添加到剪切板）。</p> <h3 id="vip会员视频自动解析"><a href="#vip会员视频自动解析" class="header-anchor">#</a> VIP会员视频自动解析</h3> <p><a href="https://greasyfork.org/zh-CN/scripts/413063-%E7%94%B5%E8%84%91-%E6%89%8B%E6%9C%BA-%E5%85%A8%E7%BD%91%E5%94%AF%E4%B8%80%E5%85%A8%E8%87%AA%E5%8A%A8%E8%84%9A%E6%9C%AC-vip%E4%BC%9A%E5%91%98%E8%A7%86%E9%A2%91%E8%87%AA%E5%8A%A8%E8%A7%A3%E6%9E%90" target="_blank" rel="noopener noreferrer">VIP会员视频自动解析<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>，能够免费看各大视频网址视频。</p> <h3 id="csdn-去广告沉浸阅读模式"><a href="#csdn-去广告沉浸阅读模式" class="header-anchor">#</a> CSDN 去广告沉浸阅读模式</h3> <p><a href="https://greasyfork.org/zh-CN/scripts/373457-csdn-%E5%8E%BB%E5%B9%BF%E5%91%8A%E6%B2%89%E6%B5%B8%E9%98%85%E8%AF%BB%E6%A8%A1%E5%BC%8F" target="_blank" rel="noopener noreferrer">CSDN 去广告沉浸阅读模式<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>提供功能包括：沉浸式阅读 🌈 使用随机背景图片 🎬 重构页面布局 🎯 净化剪切板 🎨 屏蔽一切影响阅读的元素 🎧。</p> <h2 id="移动硬盘情况"><a href="#移动硬盘情况" class="header-anchor">#</a> 移动硬盘情况</h2> <h3 id="_2tb-新-移动硬盘-黑薄"><a href="#_2tb-新-移动硬盘-黑薄" class="header-anchor">#</a> 2TB&lt;新&gt;-移动硬盘(黑薄)</h3> <p>移动硬盘名称为<code>2TB&lt;新&gt;</code>，共计2TB空间，盘符名为“<strong>Entertainment</strong>”，主要内容包括“动漫、纪录片、音乐、影视、游戏、2016年论文”。</p> <h3 id="_2tb-旧-移动硬盘-白厚"><a href="#_2tb-旧-移动硬盘-白厚" class="header-anchor">#</a> 2TB&lt;旧&gt;-移动硬盘(白厚)</h3> <p>移动硬盘名称为<strong>2TB&lt;旧&gt;</strong>，共计2TB空间，盘符名为<code>Study</code>，主要内容包括“软件、书籍 、其他技能视频 、慕课专栏 、掘金小册 、极客时间 、编程视频教程 、网易云课堂”。</p> <h3 id="_4tb-移动硬盘-黑厚"><a href="#_4tb-移动硬盘-黑厚" class="header-anchor">#</a> 4TB-移动硬盘(黑厚)</h3> <p>移动硬盘没有贴名字，共计4TB空间，盘符名为<code>Element SE</code>，主要内容包括“other 、PPT资料 、surface文件 、switch 升级备份 、其他视频教程 、历史存档资料 、多媒体制作 、学习 、宝宝资料 、小学资料 、得到 、手机备份 、操作系统原理 、机器人Linux 、樊登小读者 、汇编逆向 、爬虫数据 、电子书 、精选pdf电子书 、编程 、自然语言处理 、语料库、魔d广播剧”。</p> <h2 id="b站视频下载-bilibili视频下载"><a href="#b站视频下载-bilibili视频下载" class="header-anchor">#</a> B站视频下载(bilibili视频下载)</h2> <p><strong>方法1</strong>: 下载<a href="https://wwaz.lanzoum.com/iSPCn0n9ys0f" target="_blank" rel="noopener noreferrer">annie.exe<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>或者<a href="https://github.com/iawia002/lux" target="_blank" rel="noopener noreferrer">lux.exe<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>, 因为需要登录bilibili之后才能下载720p及以上清晰度的视频, 因此需要使用浏览器cookie, 在程序目录中创建<code>bilibili_cc.txt</code>文件, 然后登录<a href="https://www.bilibili.com/" target="_blank" rel="noopener noreferrer">B站<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>, 打开chrome浏览器的调试窗口, 在<code>网络</code>的请求中找到<code>www.bilibili.com</code>,查看<code>标头</code>的<code>cookie</code>属性, 如下图所示:</p> <p><img src="https://pic.imgdb.cn/item/63e7990c4757feff330d13ed.jpg" alt="cookie"></p> <p>右键选中<code>复制值</code>之后, 在<code>bilibili_cc.txt</code>文件中粘贴, 里面的内容应该是<code>键=值;</code>模式。</p> <p>准备好cookie之后, 在文件根目录输入<code>.\annie.exe -c .\bilibili_cc.txt -i &quot;https://www.bilibili.com/video/BV1U84y167i3&quot;</code>, 可以查看下载文件的类型和清晰度, 然后使用<code>.\annie.exe -c .\bilibili_cookie.txt -f 64 &quot;https://www.bilibili.com/video/BV1U84y167i3?p=1&quot;</code>进行下载。</p> <p><strong>方法2</strong>: 使用<a href="https://youtube.iiilab.com/" target="_blank" rel="noopener noreferrer">高清视频下载<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>, <a href="https://www.yiuios.com/tool/bilibili" target="_blank" rel="noopener noreferrer">yiuios视频解析<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>等网站下载。</p></div> <footer class="page-edit"><!----> <div class="last-updated"><span class="prefix">更新于:</span> <span class="time">2/11/2023, 10:17:44 PM</span></div></footer> <div class="page-nav"><p class="inner"><!----> <span class="next"><a href="/general/git.html">
        git 使用攻略
      </a>
      →
    </span></p></div> </main></div><div class="global-ui"><!----></div></div>
    <script src="/assets/js/app.9e067b79.js" defer></script><script src="/assets/js/2.983eb755.js" defer></script><script src="/assets/js/33.c82e2ab8.js" defer></script>
  </body>
</html>
